package com.example.yingjiguanli_demo.pojo;

import lombok.Data;

@Data
public class AnswerResult {
    private int questionId; // 题目ID
    private boolean isCorrect; // 是否正确
    private String message; // 提交反馈信息
    private String correctAnswer; // 添加字段存储正确答案

    // 添加构造函数
    public AnswerResult(int questionId, boolean isCorrect, String message, String correctAnswer) {
        this.questionId = questionId;
        this.isCorrect = isCorrect;
        this.message = message;
        this.correctAnswer = correctAnswer;
    }

    // Getter 和 Setter
}
